﻿namespace Puppy.Scheduler.Options
{
    /// <summary>
    /// 服务配置
    /// </summary>
    public class ServerOption
    {
        /// <summary>
        /// 集群ID
        /// </summary>
        public string ClusterId { get; set; }

        /// <summary>
        /// 服务ID，一个集群可以有多个隔离的服务
        /// </summary>
        public string ServiceId { get; set; }

        /// <summary>
        /// 集群配置
        /// </summary>
        public ConnectionOptions ClusteringConfig { get; set; } = new ConnectionOptions();

        /// <summary>
        /// 持久化配置
        /// </summary>
        public ConnectionOptions StorageConfig { get; set; } = new ConnectionOptions();
    }
}
